﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020006E3 RID: 1763
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetFriendAssistListScRsp : IMessage<GetFriendAssistListScRsp>, IMessage, IEquatable<GetFriendAssistListScRsp>, IDeepCloneable<GetFriendAssistListScRsp>, IBufferMessage
	{
		// Token: 0x170016A5 RID: 5797
		// (get) Token: 0x06004F64 RID: 20324 RVA: 0x000D85D7 File Offset: 0x000D67D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetFriendAssistListScRsp> Parser
		{
			get
			{
				return GetFriendAssistListScRsp._parser;
			}
		}

		// Token: 0x170016A6 RID: 5798
		// (get) Token: 0x06004F65 RID: 20325 RVA: 0x000D85DE File Offset: 0x000D67DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetFriendAssistListScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170016A7 RID: 5799
		// (get) Token: 0x06004F66 RID: 20326 RVA: 0x000D85F0 File Offset: 0x000D67F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetFriendAssistListScRsp.Descriptor;
			}
		}

		// Token: 0x06004F67 RID: 20327 RVA: 0x000D85F7 File Offset: 0x000D67F7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetFriendAssistListScRsp()
		{
		}

		// Token: 0x06004F68 RID: 20328 RVA: 0x000D860C File Offset: 0x000D680C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetFriendAssistListScRsp(GetFriendAssistListScRsp other) : this()
		{
			this.assistList_ = other.assistList_.Clone();
			this.targetId_ = other.targetId_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004F69 RID: 20329 RVA: 0x000D8659 File Offset: 0x000D6859
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetFriendAssistListScRsp Clone()
		{
			return new GetFriendAssistListScRsp(this);
		}

		// Token: 0x170016A8 RID: 5800
		// (get) Token: 0x06004F6A RID: 20330 RVA: 0x000D8661 File Offset: 0x000D6861
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<PlayerAssistInfo> AssistList
		{
			get
			{
				return this.assistList_;
			}
		}

		// Token: 0x170016A9 RID: 5801
		// (get) Token: 0x06004F6B RID: 20331 RVA: 0x000D8669 File Offset: 0x000D6869
		// (set) Token: 0x06004F6C RID: 20332 RVA: 0x000D8671 File Offset: 0x000D6871
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TargetId
		{
			get
			{
				return this.targetId_;
			}
			set
			{
				this.targetId_ = value;
			}
		}

		// Token: 0x170016AA RID: 5802
		// (get) Token: 0x06004F6D RID: 20333 RVA: 0x000D867A File Offset: 0x000D687A
		// (set) Token: 0x06004F6E RID: 20334 RVA: 0x000D8682 File Offset: 0x000D6882
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06004F6F RID: 20335 RVA: 0x000D868B File Offset: 0x000D688B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetFriendAssistListScRsp);
		}

		// Token: 0x06004F70 RID: 20336 RVA: 0x000D869C File Offset: 0x000D689C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetFriendAssistListScRsp other)
		{
			return other != null && (other == this || (this.assistList_.Equals(other.assistList_) && this.TargetId == other.TargetId && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06004F71 RID: 20337 RVA: 0x000D86FC File Offset: 0x000D68FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.assistList_.GetHashCode();
			if (this.TargetId != 0U)
			{
				num ^= this.TargetId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06004F72 RID: 20338 RVA: 0x000D8762 File Offset: 0x000D6962
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06004F73 RID: 20339 RVA: 0x000D876A File Offset: 0x000D696A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004F74 RID: 20340 RVA: 0x000D8774 File Offset: 0x000D6974
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Retcode);
			}
			if (this.TargetId != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.TargetId);
			}
			this.assistList_.WriteTo(ref output, GetFriendAssistListScRsp._repeated_assistList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004F75 RID: 20341 RVA: 0x000D87E0 File Offset: 0x000D69E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.assistList_.CalculateSize(GetFriendAssistListScRsp._repeated_assistList_codec);
			if (this.TargetId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TargetId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004F76 RID: 20342 RVA: 0x000D884C File Offset: 0x000D6A4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetFriendAssistListScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.assistList_.Add(other.assistList_);
			if (other.TargetId != 0U)
			{
				this.TargetId = other.TargetId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004F77 RID: 20343 RVA: 0x000D88AD File Offset: 0x000D6AAD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06004F78 RID: 20344 RVA: 0x000D88B8 File Offset: 0x000D6AB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 88U)
					{
						if (num != 106U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.assistList_.AddEntriesFrom(ref input, GetFriendAssistListScRsp._repeated_assistList_codec);
						}
					}
					else
					{
						this.TargetId = input.ReadUInt32();
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04001F3E RID: 7998
		private static readonly MessageParser<GetFriendAssistListScRsp> _parser = new MessageParser<GetFriendAssistListScRsp>(() => new GetFriendAssistListScRsp());

		// Token: 0x04001F3F RID: 7999
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001F40 RID: 8000
		public const int AssistListFieldNumber = 13;

		// Token: 0x04001F41 RID: 8001
		private static readonly FieldCodec<PlayerAssistInfo> _repeated_assistList_codec = FieldCodec.ForMessage<PlayerAssistInfo>(106U, PlayerAssistInfo.Parser);

		// Token: 0x04001F42 RID: 8002
		private readonly RepeatedField<PlayerAssistInfo> assistList_ = new RepeatedField<PlayerAssistInfo>();

		// Token: 0x04001F43 RID: 8003
		public const int TargetIdFieldNumber = 11;

		// Token: 0x04001F44 RID: 8004
		private uint targetId_;

		// Token: 0x04001F45 RID: 8005
		public const int RetcodeFieldNumber = 5;

		// Token: 0x04001F46 RID: 8006
		private uint retcode_;
	}
}
